@deep: ~'>>>';

/*######################## 默认样式覆盖 ######################*/
.ivu-select-selection,
.ivu-btn,
.ivu-input,
.ivu-select-dropdown,
.ivu-modal-content,
.ivu-card,
.ivu-progress-bg,
.ivu-progress-inner,
.ivu-input-number,
.ivu-input-number-input,
.ivu-radio-border,
.ivu-tag {
  border-radius: 0 !important;
}

// 卡片
.ivu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ivu-card-head {
  padding: 10px;
}
.ivu-card-extra {
  top: 10px;
  right: 10px;
  line-height: 1;
}
.ivu-card-body {
  flex: 1;
  padding: 0;
  overflow: hidden;
}

// 模态框
.ivu-modal-header,
.ivu-modal-footer {
  padding: 10px;
}
.ivu-modal-body {
  padding: 0;
}
.modal--maxheight70 {
  z-index: 1037 !important;

  .ivu-modal {
    top: 10vh;
  }

  .ivu-modal-body {
    max-height: 70vh;
    overflow: auto;
    padding: 16px 25px;
  }
}
.model--resource {
  .ivu-modal-body {
    max-height: 70vh;
    overflow: auto;
    padding: 40px 36px;
  }
}
.ivu-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;

  .ivu-modal-body {
    flex: 1;
  }
}

.ivu-dropdown-item {
  .ivu-dropdown-rel {
    .ivu-dropdown-item {
      padding: 0;
    }
  }
}

// 表格
.ivu-table-row {
  cursor: pointer;
}

//表单
.ivu-input[disabled],
fieldset[disabled] .ivu-input {
  opacity: 0.4;
}

// 图表无数据展示
.no-data {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  margin-top: -7px;
  text-align: center;
  font-size: 14px;
}

/*######################## 默认样式覆盖结束 ###################*/

/*####################### 公共样式 #########################*/
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: ' ';
  clear: both;
  height: 0;
}

.clearfix {
  *zoom: 1;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.none {
  display: none;
}

.disi {
  display: inline;
}

.disib {
  display: inline-block;
}

.disb {
  display: block;
}

.tc {
  text-align: center;
}

.tr {
  text-align: right;
}

.fit-table-parent {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/*############### 滚动条 ############### */
html {
  scrollbar-color: #777 #1c213e;
  scrollbar-width: thin;
  * {
    scrollbar-color: #777 #1c213e;
    scrollbar-width: thin;
  }
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  border-radius: 8px;
}

::-webkit-scrollbar-track-piece {
  /*内层轨道，滚动条中间部分（位置4）*/
  border-radius: 2px 2px 0px 0px;
}

::-webkit-scrollbar-thumb {
  background: #777;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

::-webkit-scrollbar-corner {
  background: #f6f6f6;
}

// 百度地图logo隐藏
.BMap_cpyCtrl,
.anchorBL {
  .none;
}

.modal-p10 {
  @{deep} .ivu-modal-body {
    #pad(10px);
  }
}

.modal-p10 {
  .ivu-modal-body {
    padding: 10px;
  }
}

.stop-opeartion {
  pointer-events: none;
  position: relative;

  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    opacity: 0.2;
  }
}

.content-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 0;
  overflow: hidden;
  box-sizing: border-box;
}

.box-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.table-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;

  .ivu-table-wrapper {
    flex: 1;
  }
}

.ivu-tooltip-inner {
  min-height: 24px;
  padding: 4px 8px;
}

/*######################## 公共样式结束 ######################*/
